package com.dishes.douguo.Controller;


import com.dishes.douguo.Service.activityService;
import com.dishes.douguo.Service.foodService;
import com.dishes.douguo.util.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "活动信息管理")
@RestController
@RequestMapping("/dishes/douguo/activity")
public class activityController {

    @Autowired
    activityService service;

    @ApiOperation("获取活动列表")
    @CrossOrigin
    @GetMapping("/getActivityList")
    public AjaxResult getActivityList(){


        return  AjaxResult.success(service.getActivityList());
    }

}
